﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using Microsoft.SharePoint;

namespace PepsiCo.Common.Entities
{
    [Serializable]
    public class MegaMenuItemDefinition
    {
        public string Title { get; set; }
        public string Hyperlink { get; set; }
        //public string Section { get; set; }
        public string SubSection { get; set; }
        public string ItemOrder { get; set; }
        public bool IsActive { get; set; }
    }

    [Serializable]
    public class MegaMenuSectionDefinition
    {
        public string Section { get; set; }
        public string Hyperlink { get; set; }
        public string ItemOrder { get; set; }
        public bool IsActive { get; set; }

        [XmlArray("MegaMenuItems")]
        [XmlArrayItem("MegaMenuItem")]
        public List<MegaMenuItemDefinition> MenuItems { get; set; }

        public MegaMenuSectionDefinition()
        {
            MenuItems = new List<MegaMenuItemDefinition>();
        }
    }

    [XmlRoot("MegaMenu")]
    public class MegaMenuSectionDefinitionCollection : List<MegaMenuSectionDefinition>
    {
        public MegaMenuSectionDefinitionCollection()
        {

        }
    }
}
